package com.hom;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class Test1 {
    public static void main(String[] args) {
        Runnable run1 =new Runnable() {
            @Override
            public void run() {
                System.out.println("==========");
            }
        };
        new Thread(run1).start();

        Runnable run2 = () -> System.out.println("=====222");
        new Thread(run2).start();
    }
}

interface T1{
public void methodOne();
    T1 t1 = ()-> System.out.println("nihao");

}
interface T2{
    public void methodTwo(String s);
    T2 t2 =  s -> System.out.println("参数字符串内容"+s);
    //t2.methodTwo("小明");
}
interface T3 {
    public String methodThree(Integer i);
    //如果方法有返回值，那么使用return关键字返回返回值的时候即便只有一行代码也要写大括号
   // T3 t3 = i -> {return"参数的当前值是："+i;};
    //T3 t3 = i->"参数的当前值是："+i;
    //T3 t3 = {i->System.out.println("one World one Dream！");return"参数的当前值是："+i;};
    //String s =t3.methodThree(200);
    //sout(s);

}
interface T4{
    public void methodFour(String s,Integer i);
    //T4 t4 = ( s, i)-> System.out.println(s,i);
    // t4.methodFour("刘德华",54);

}